package com.region.http.client.request;

import com.region.http.client.annotation.parameter.Body;
import com.region.http.client.annotation.request.GetUrl;
import com.region.http.client.annotation.request.PostUrl;
import com.region.http.client.common.ContentType;
import com.region.http.client.entity.ResultVO;
import com.region.http.client.entity.User;

import java.util.List;

/**
 * @author 26225
 * @date 2023/8/26 16:11
 * @description
 */
public interface ParentRequest {

    @GetUrl(value = "/test/getData")
    String getData();

    @GetUrl(value = "/test/getNumberData")
    int getNumberData();

    @PostUrl(value = "/test/getUserInfo", contentType = ContentType.APPLICATION_JSON)
    List<User> getUserInfo(@Body List<Integer> ids);

    @PostUrl(value = "/test/multipartForm", contentType = ContentType.MULTIPART_FORM_DATA_VALUE)
    ResultVO<User> getMultiForm(@Body User user);
}
